#include<stdio.h>
int main()
{
	float c;
	scanf("%f",&c);
	float F;
	F=(c+32)*9/5;
	printf("%.2f",F);
	return 0;
}
